package com.ssqdx.controller;

import com.alibaba.fastjson.JSONArray;
import com.ssqdx.service.RoleServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
@RequestMapping("/jsp")
public class RoleController {

    @Autowired
    private RoleServiceImpl roleService;

    @RequestMapping("/getrolelist")
    @ResponseBody
    public String getRoleList() {
        return JSONArray.toJSONString(roleService.getRoleList());
    }

}
